package com.ming.param;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author MING
 * @date 2018/8/13 9:57
 */
@Getter
@Setter
public class UPpassword {

    @NotBlank(message = "旧密码不能为空")
    private String oldPwd;

    @NotBlank(message = "新密码不能为空")
    private String newPwd;

    @NotBlank(message = "新密码确认不能为空")
    @Length(min = 6, message = "新密码长度不能小于6位")
    private String confirmPwd;
}
